/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package proyectoformulariodinamico;

import java.awt.Cursor;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

/**
 *
 * @author David
 */
public class JLabelTest extends JLabel{
    
    private int index;

    public JLabelTest(int index, String text) {
        setIcon(new ImageIcon(text));
        setCursor(new Cursor(Cursor.HAND_CURSOR));
        this.index = index;
    }
    
    public int getIndex(){
        return index;
    }
    
}
